import axios from './simba.axios'
import _ from './simba'
export default {
    install(Vue, options) {

        Vue.prototype.$get = function (url, data) {
            return axios.get(url, data)
        }

        Vue.prototype.$post = function (url, data) {
            return axios.post(url, data)
        }

        if (options && options.color) {
            _.loadingbar.config.color = options.color
        }
        
        Vue.prototype.$loadingbar = _.loadingbar
    }
}